﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model PessModel.Rule

@{
    ViewBag.Title = "Edit";
}

<h2>编辑规则</h2>

<div id="operate" >
    @Html.ActionLink("返回", "Details", new {subjectID=Model.SubjectID })
</div>
@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="edit">
        <legend></legend>

        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model=>model.SubjectID)

        <div class="editor-label">
            @*@Html.LabelFor(model => model.SubjectID)*@学科：
        </div>
        <div class="editor-field down">
            @Html.DisplayFor(model => model.Subject.Name)          
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Name)*@规则名称：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label fly">
            @*@Html.LabelFor(model => model.Description)*@规则说明：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            规则分值：
        </div>
        <div class="editor-field forIE7">
            @Html.EditorFor(model => model.Value)
            @Html.ValidationMessageFor(model => model.Value)
        </div>

        <div class="editor-btn">
            <input type="submit" value="保存" />
        </div>
    </fieldset>
}

